package com.boot.learning.autoconfig;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.ApiOperation;

/**
 * 测试调用自定义的配置 
 * 
 * @since JDK1.8
 * @author vencano
 * @date 2017年1月8日 上午11:33:57
 */
@RestController
public class HelloAutoController {

	@Autowired	
	private HelloService service;
	
	@RequestMapping(value="/auto/home",method=RequestMethod.GET)
	@ApiOperation(value="测试springboot自定义配置加载", notes="测试接口详细描述")
	public String home() {
		return service.getSayMsg();
	}
}
